﻿using Nop.Admin.Models.Common;
using Nop.Web.Framework.Mvc;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Nop.Admin.Models.XJ
{
	public class ConsumablesListModel
	{
	}
	public class ConsumablesModel : BaseNopEntityModel
	{
		public ConsumablesModel()
		{
			AvailableCategories = new List<SelectMenuModel>();
		}
		/// <summary>
		/// 分类
		/// <see cref="XJEquipmentCategory"/>
		/// </summary>
		[UIHint("SelectMenu")]
		public int CategoryId { get; set; }
		public string CategoryName { get; set; }
		/// <summary>
		/// 名称
		/// </summary>
		public string Name { get; set; }
		/// <summary>
		/// 单价
		/// </summary>
		public decimal Price { get; set; }
		/// <summary>
		/// 平均使用寿命
		/// </summary>
		public int MeanLife { get; set; }
		/// <summary>
		/// 品牌
		/// </summary>
		public string Manufacturer { get; set; }
		/// <summary>
		/// 规格型号
		/// </summary>
		public string Specification { get; set; }
		/// <summary>
		/// 单位
		/// </summary>
		public string Unit { get; set; }
		/// <summary>
		/// 排序
		/// </summary>
		public int DisplayOrder { get; set; }
		/// <summary>
		/// 最小库存数量
		/// </summary>
		public int StockMin { get; set; }
		/// <summary>
		/// 当前库存数量
		/// </summary>
		public int Stock { get; set; }
		/// <summary>
		/// 冻结数量
		/// </summary>
		public int Freeze { get; set; }
		/// <summary>
		/// 发布
		/// </summary>
		public bool Published { get; set; }
		/// <summary>
		/// 选中
		/// </summary>
		public bool Checked { get; set; }
		/// <summary>
		/// 创建人
		/// </summary>
		public int CustomerId { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreatedOn { get; set; }
		/// <summary>
		/// 分类
		/// </summary>
		public IList<SelectMenuModel> AvailableCategories { get; set; }
	}
}